import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/partyBuilding',
    name: 'PartyBuilding',
    component: () => import('../views/partyBuilding.vue'),
  },
  {
    path: '/marketSafety',
    name: 'MarketSafety',
    component: () => import('../views/marketSafety')
  },
  {
    path: '/marketGovern',
    name: 'MarketGovern',
    component: () => import('../views/marketGovern')
  },
  {
    path: '/marketTrade',
    name: 'MarketTrade',
    component: () => import('../views/marketTrade')
  },
  {
    path: '/operatorInfo',
    name: 'OperatorInfo',
    component: () => import('../views/operatorInfo')
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: '/qjonline',
  routes
})

export default router
